package cn.bs.busuo.mall.dao.persist.mapper;

import cn.bs.busuo.mall.pojo.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
   Goods getStandardById(Long id);

   List<Goods> listByRecommend();

   /**
    * 根据类别查询商品列表
    *
    * @param categoryId 商品类别的ID
    * @return 商品列表
    */
   List<Goods> listByCategory(Long categoryId);
}
